home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / GWMALLOC.ZIP;1 / GWMALLOC.TAR / gw_malloc / dbg_tokens.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-08  |  2.2 KB  |  69 lines

  1. /*
  2.  * tokens attributes for the malloc_dbg program
  3.  *
  4.  * Copyright 1992 by Gray Watson and the Antaire Corporation
  5.  *
  6.  * This file is part of the malloc-debug package.
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library (see COPYING-LIB); if not, write to the
  20.  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  * The author of the program may be contacted at gray.watson@antaire.com
  23.  *
  24.  * $Id: dbg_tokens.h,v 1.5 1993/04/05 22:30:04 gray Exp $
  25.  */
  26.  
  27. #ifndef __DBG_TOKENS_H__
  28. #define __DBG_TOKENS_H__
  29.  
  30. #include "malloc.h"            /* for LOCAL and bool stuff */
  31. #include "dbg_values.h"            /* for debug codes */
  32.  
  33. typedef struct {
  34.   char        *at_string;        /* attribute string */
  35.   int        at_value;        /* value for the item*/
  36. } attr_t;
  37.  
  38. LOCAL    attr_t        attributes[] = {
  39.   { "none",            0 },
  40.   
  41.   { "log-stats",        DEBUG_LOG_STATS },
  42.   { "log-non-free",        DEBUG_LOG_NONFREE },
  43.   { "log-perror",        DEBUG_LOG_PERROR },
  44.   { "log-trans",        DEBUG_LOG_TRANS },
  45.   { "log-bad-pnt",        DEBUG_LOG_BAD_POINTER },
  46.   { "log-admin",        DEBUG_LOG_ADMIN },
  47.   { "log-blocks",        DEBUG_LOG_BLOCKS },
  48.   { "log-unknown",        DEBUG_LOG_UNKNOWN },
  49.   
  50.   { "check-fence",        DEBUG_CHECK_FENCE },
  51.   { "check-heap",        DEBUG_CHECK_HEAP },
  52.   { "check-lists",        DEBUG_CHECK_LISTS },
  53.   { "check-dblock",        DEBUG_CHECK_DBLOCK },
  54.   { "check-dblock-fence",    DEBUG_CHECK_DB_FENCE },
  55.   { "check-free",        DEBUG_CHECK_FREE },
  56.   { "check-funcs",        DEBUG_CHECK_FUNCS },
  57.   
  58.   { "realloc-copy",        DEBUG_REALLOC_COPY },
  59.   { "free-blank",        DEBUG_FREE_BLANK },
  60.   { "error-abort",        DEBUG_ERROR_ABORT },
  61.   { "alloc-blank",        DEBUG_ALLOC_BLANK },
  62.   { "heap-check-map",        DEBUG_HEAP_CHECK_MAP },
  63.   { "print-perror",        DEBUG_PRINT_PERROR },
  64.   
  65.   { NULL }
  66. };
  67.  
  68. #endif /* ! __DBG_TOKENS_H__ */
  69.